(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    ["pages/main/message/messListIndex"], {
        1511: function (e, t, n) {
            "use strict";
            (function (e, t) {
                var a = n("4ea4");
                n("c150"), n("5c17"), n("a9ff");
                a(n("66fd"));
                var o = a(n("f682"));
                e.__webpack_require_UNI_MP_PLUGIN__ = n, t(o.default)
            }).call(this, n("bc2e")["default"], n("543d")["createPage"])
        },
        2200: function (e, t, n) {},
        "37f6": function (e, t, n) {
            "use strict";
            (function (e) {
                var a = n("4ea4");
                Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.default = void 0;
                var o = a(n("2eee")),
                    i = a(n("c973")),
                    s = {
                        data: function () {
                            return {
                                url: getApp().globalData.apiurl,
                                dataList: []
                            }
                        },
                        created: function () {
                            this.initData()
                        },
                        methods: {
                            updateReadState: function (t) {
                                var n = this;
                                e.request({
                                    url: this.url + "appmessage/appmessage",
                                    method: "PUT",
                                    data: {
                                        id: t.id,
                                        isReadState: 1
                                    },
                                    success: function (a) {
                                        return n.initData(), console.log(t.messageLocation), "审批路径" == t.messageLocation ? e.navigateTo({
                                            url: "/pages/main/message/messdetails?id=".concat(t.id)
                                        }) : "销售路径" == t.messageLocation ? e.navigateTo({
                                            url: "/pages/main/sales/orderDetails?id=".concat(t.orderId)
                                        }) : void("库房路径" == t.messageLocation && (console.log("进来"), e.request({
                                            url: n.url + "outboundorder/outboundorder/list",
                                            method: "GET",
                                            data: {
                                                salesdocumentsno: t.orderId
                                            },
                                            success: function (n) {
                                                console.log("得到出库单数据条", n.data.rows[0].id);
                                                var a = n.data.rows[0].id + "@" + t.orderId;
                                                return e.navigateTo({
                                                    url: "/pages/main/storehouse/outdetails?id=".concat(a)
                                                })
                                            }
                                        })))
                                    },
                                    fail: function () {},
                                    complete: function () {}
                                })
                            },
                            getStyleBor: function (e) {
                                return 0 == e ? "border: 1px solid red" : "border: 1px solid skyblue"
                            },
                            initData: function () {
                                var t = this;
                                return (0, i.default)(o.default.mark((function n() {
                                    var a, i, s;
                                    return o.default.wrap((function (n) {
                                        while (1) switch (n.prev = n.next) {
                                            case 0:
                                                getApp().globalData.userinfo.nickName, a = getApp().globalData.userinfo, i = [], s = "", a.roles.forEach((function (e) {
                                                    return "salessupervisor" == e.roleKey ? i = [0, 0] : "salesman" == e.roleKey ? i = [1, 3] : "StorageRoom" == e.roleKey ? s = "库房人员" : void 0
                                                })), e.request({
                                                    url: t.url + "appmessage/appmessage/list",
                                                    method: "GET",
                                                    data: {
                                                        messageState: i,
                                                        nickName: "" == s ? null : s
                                                    },
                                                    success: function (e) {
                                                        t.dataList = e.data.rows, console.log(e)
                                                    },
                                                    fail: function () {},
                                                    complete: function () {}
                                                });
                                            case 6:
                                            case "end":
                                                return n.stop()
                                        }
                                    }), n)
                                })))()
                            }
                        },
                        onLoad: function () {}
                    };
                t.default = s
            }).call(this, n("543d")["default"])
        },
        "65ac": function (e, t, n) {
            "use strict";
            n.d(t, "b", (function () {
                return o
            })), n.d(t, "c", (function () {
                return i
            })), n.d(t, "a", (function () {
                return a
            }));
            var a = {
                    uniSwipeAction: function () {
                        return n.e("components/uni-swipe-action/uni-swipe-action").then(n.bind(null, "e7b4"))
                    },
                    uniSwipeActionItem: function () {
                        return Promise.all([n.e("common/vendor"), n.e("components/uni-swipe-action-item/uni-swipe-action-item")]).then(n.bind(null, "c498"))
                    }
                },
                o = function () {
                    console.log(this.dataList)
                    var e = this.$createElement,
                    
                        t = (this._self._c, this.dataList.length);
                    this.$mp.data = Object.assign({}, {
                        $root: {
                            g0: t
                        }
                    })
                },
                i = []
        },
        "97f7": function (e, t, n) {
            "use strict";
            var a = n("2200"),
                o = n.n(a);
            o.a
        },
        "9b06": function (e, t, n) {
            "use strict";
            n.r(t);
            var a = n("37f6"),
                o = n.n(a);
            for (var i in a)["default"].indexOf(i) < 0 && function (e) {
                n.d(t, e, (function () {
                    return a[e]
                }))
            }(i);
            t["default"] = o.a
        },
        f682: function (e, t, n) {
            "use strict";
            n.r(t);
            var a = n("65ac"),
                o = n("9b06");
            for (var i in o)["default"].indexOf(i) < 0 && function (e) {
                n.d(t, e, (function () {
                    return o[e]
                }))
            }(i);
            n("97f7");
            var s = n("f0c5"),
                r = Object(s["a"])(o["default"], a["b"], a["c"], !1, null, "6b62fc00", null, !1, a["a"], void 0);
            t["default"] = r.exports
        }
    },
    [
        ["1511", "common/runtime", "common/vendor"]
    ]
]);